<template>
  <div class="dashboard-container">
    <div class="dashboard-text">这是系统home页面</div>
  </div>
</template>

<script>
import axios from "axios";
import Cookies from "js-cookie";

export default {
  name: "Home",
  computed: {},
  created() { 
    let authorization = Cookies.get("Authorization") ? Cookies.get("Authorization") : ""
    console.log(authorization)
    axios
      .get("http://localhost:8000/sys/user/selectById?id=1",{
        headers:{
          Authorization:authorization
        }
      })
      .then(function(response) {
        console.log(response);
      })
      .catch(function(error) {
        console.log(error);
      });
  }
};
</script>

<style lang="scss" scoped>
.dashboard {
  &-container {
    margin: 30px;
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}
</style>
